Integrand size = 17, antiderivative size = 114 \[ \int x^2 \sin ^p\left (a+b \log \left (c x^n\right )\right ) \, dx=\frac {x^3 \left (1-e^{2 i a} \left (c x^n\right )^{2 i b}\right )^{-p} \operatorname {Hypergeometric2F1}\left (-p,-\frac {3 i+b n p}{2 b n},\frac {1}{2} \left (2-\frac {3 i}{b n}-p\right ),e^{2 i a} \left (c x^n\right )^{2 i b}\right ) \sin ^p\left (a+b \log \left (c x^n\right )\right )}{3-i b n p} \]
[Out]
Time = 0.12 (sec) , antiderivative size = 114, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.176, Rules used = {4581, 4579, 371} \[ \int x^2 \sin ^p\left (a+b \log \left (c x^n\right )\right ) \, dx=\frac {x^3 \left (1-e^{2 i a} \left (c x^n\right )^{2 i b}\right )^{-p} \operatorname {Hypergeometric2F1}\left (-p,-\frac {b n p+3 i}{2 b n},\frac {1}{2} \left (-p-\frac {3 i}{b n}+2\right ),e^{2 i a} \left (c x^n\right )^{2 i b}\right ) \sin ^p\left (a+b \log \left (c x^n\right )\right )}{3-i b n p} \]
[In]
[Out]
Rule 371
Rule 4579
Rule 4581
Rubi steps \begin{align*} \text {integral}& = \frac {\left (x^3 \left (c x^n\right )^{-3/n}\right ) \text {Subst}\left (\int x^{-1+\frac {3}{n}} \sin ^p(a+b \log (x)) \, dx,x,c x^n\right )}{n} \\ & = \frac {\left (x^3 \left (c x^n\right )^{-\frac {3}{n}+i b p} \left (1-e^{2 i a} \left (c x^n\right )^{2 i b}\right )^{-p} \sin ^p\left (a+b \log \left (c x^n\right )\right )\right ) \text {Subst}\left (\int x^{-1+\frac {3}{n}-i b p} \left (1-e^{2 i a} x^{2 i b}\right )^p \, dx,x,c x^n\right )}{n} \\ & = \frac {x^3 \left (1-e^{2 i a} \left (c x^n\right )^{2 i b}\right )^{-p} \operatorname {Hypergeometric2F1}\left (-p,-\frac {3 i+b n p}{2 b n},\frac {1}{2} \left (2-\frac {3 i}{b n}-p\right ),e^{2 i a} \left (c x^n\right )^{2 i b}\right ) \sin ^p\left (a+b \log \left (c x^n\right )\right )}{3-i b n p} \\ \end{align*}
Time = 0.69 (sec) , antiderivative size = 148, normalized size of antiderivative = 1.30 \[ \int x^2 \sin ^p\left (a+b \log \left (c x^n\right )\right ) \, dx=\frac {i x^3 \left (2-2 e^{2 i a} \left (c x^n\right )^{2 i b}\right )^{-p} \left (-i e^{-i a} \left (c x^n\right )^{-i b} \left (-1+e^{2 i a} \left (c x^n\right )^{2 i b}\right )\right )^p \operatorname {Hypergeometric2F1}\left (-p,-\frac {3 i+b n p}{2 b n},1-\frac {3 i}{2 b n}-\frac {p}{2},e^{2 i a} \left (c x^n\right )^{2 i b}\right )}{3 i+b n p} \]
[In]
[Out]
\[\int x^{2} {\sin \left (a +b \ln \left (c \,x^{n}\right )\right )}^{p}d x\]
[In]
[Out]
\[ \int x^2 \sin ^p\left (a+b \log \left (c x^n\right )\right ) \, dx=\int { x^{2} \sin \left (b \log \left (c x^{n}\right ) + a\right )^{p} \,d x } \]
[In]
[Out]
\[ \int x^2 \sin ^p\left (a+b \log \left (c x^n\right )\right ) \, dx=\int x^{2} \sin ^{p}{\left (a + b \log {\left (c x^{n} \right )} \right )}\, dx \]
[In]
[Out]
\[ \int x^2 \sin ^p\left (a+b \log \left (c x^n\right )\right ) \, dx=\int { x^{2} \sin \left (b \log \left (c x^{n}\right ) + a\right )^{p} \,d x } \]
[In]
[Out]
\[ \int x^2 \sin ^p\left (a+b \log \left (c x^n\right )\right ) \, dx=\int { x^{2} \sin \left (b \log \left (c x^{n}\right ) + a\right )^{p} \,d x } \]
[In]
[Out]
Timed out. \[ \int x^2 \sin ^p\left (a+b \log \left (c x^n\right )\right ) \, dx=\int x^2\,{\sin \left (a+b\,\ln \left (c\,x^n\right )\right )}^p \,d x \]
[In]
[Out]